package controller.weapon
{
	import model.weapon.WeaponModel;
	
	import org.robotlegs.mvcs.StarlingCommand;
	
	import view.event.weapon.flute.FluteStaffViewEvent;
	import view.event.weapon.flute.FluteViewEvent;
	
	
	/**
	 * 请求查看笛子某一音色的乐谱
	 * @author £iang
	 * 
	 */	
	public class ShowFluteMelodyCommand extends StarlingCommand
	{
		//-----------------------------
		// variables
		//-----------------------------
		
		/** weaponModel */
		[Inject]
		public var weaponModel:WeaponModel;
		
		//-----------------------------
		// properties
		//-----------------------------
		
		//-----------------------------
		// setter&getter
		//-----------------------------
		
		//-----------------------------
		// methods
		//-----------------------------
		
		/**
		 * 执行函数 
		 * 
		 */		
		override public function execute():void
		{
			var fluteEvent:FluteViewEvent = 
				new FluteViewEvent( FluteViewEvent.SHOW_MELODY );
			
			dispatch( fluteEvent );
			
			var fluteStaffEvent:FluteStaffViewEvent = 
				new FluteStaffViewEvent( FluteStaffViewEvent.SHOW_MELODY );
		
			dispatch( fluteStaffEvent );
		}
		
		//-----------------------------
		// events
		//-----------------------------
		
		//-----------------------------
		// dispose
		//-----------------------------
		
		//-----------------------------
		// construction
		//-----------------------------
		
		/**
		 * 构造函数
		 *
		 */
		public function ShowFluteMelodyCommand()
		{
			super();
		}
	}
}